#ifndef COLUMNSET_H
#define COLUMNSET_H

#include <map>
#include <vector>
#include "Column.h"

using std::vector;
using std::map;

namespace duomai {
    namespace im {

        class ColumnSet
        {
            public:
                ColumnSet (vector<Column>& columns);
                ColumnSet (const ColumnSet& columns);
                virtual ~ColumnSet ();
                Column* getByIndex(int index);
                Column* getByName(string name);
                int getCount();
                string toString();
                string toSQLCreate();

            private:
                vector<Column> m_Vector;
                map<string, Column*> m_Map;
        };
    }
}

#endif /* end of include guard: COLUMNSET_H */
